The owners are responsible for how dogs behave and sleep. They should have proper patience in guiding the dogs. If you are not in good health, then sleeping with dogs can be risky and not good in terms of health. It's better to train your dogs to sleep in their beds.
Sometimes a dog's age makes it harder for them to sleep calmly throughout the night. Depending upon the breeds, dogs overall rest for 12-14 hours each day which is their regular sleeping cycle. The main reason to be conscious at night includes some general body discomfort or changes in sleep patterns.